Practical Shape Analysis
نویسنده
چکیده
Practical Shape Analysis by William Terrence McCloskey Doctor of Philosophy in Computer Science University of California, Berkeley Professor Eric Brewer, Chair Shape analysis is a program analysis technique used to prove that imperative programs using manual memory management will not crash. In the past, shape analysis has been applied to data structures like linked lists and binary trees. It has also been used on simplified versions of Windows device drivers. We describe techniques that allow us to apply shape analysis to data structures that occur commonly in systems code. These data structures often use arrays, hash tables, C strings, and buffers of a known size. Sometimes, memory in these data structures is managed by manual reference counting. Analyzing such code is difficult or impossible with existing shape analyses. Most difficult of all, many data structures use several of these patterns at the same time, such as a hash table pointing to reference counted objects through which a doubly linked list threads. We describe an analysis capable of handling these data structures easily and efficiently. Our technique uses abstract interpretation over the combination of two abstract domains. One, based on three-valued logic, is used for analyzing the heap. The other domain reasons about integers and set cardinality. The key feature of the combined domain is that quantified facts can be shared between the integer and heap domains. The precision we achieve is significantly greater than if either domain were used independently. Besides improvements in precision, we also describe changes that make both domains more scalable and efficient. We present the results of experiments analyzing the cache data structure of the thttpd web server, which uses a hash table, linked lists, and reference counting in a single data structure. We successfully prove the absence of memory errors in about two minutes.
منابع مشابه
The Heinemann-Mittermeir Generalized Shape Factor and Its Practical Relevance
Fifty years ago Warren and Root have introduced the shape factor. This fundamental parameter for modeling of naturally fractured reservoirs has been discussed stormily ever since. Different definitions for shape factor have been suggested which all of them are heuristically based. Recently, Heinemann and Mittermeir mathematically derived - based on the dual-continuum theorem assuming pseudo-ste...
متن کاملA Theoretical and Practical Study of Cracking of an Aluminium Alloy During Side Pressing Using a Finite - Element Analysis
Elastic-plastic finite-element analysis applied to metalforming allows the real macroscopic properties of the workpiece to be incorporated. This paper presents the results of an experimental study of the initiation of cracking in side-pressing of a heat-treated aluminium alloy (Duralloy 2014). Using an F. E. analysis, these are related to various fracture criteria. It is found that the criterio...
متن کاملInvestigation of Thermo-hydraulic Performance of Circular Tube Fitted with Center-cleared Twisted Tape Using CFD Modeling (RESEARCH NOTE)
The article presents a practical technique for enhancing thermo-hydraulic performance of a circular tube. In this way, numerical method focusing on laminar tubular flow is used to compare the effectiveness of utilizing center-cleared twisted tapes instead of typical shape of short width tapes. Numerical analysis represented that using both center-cleared and typical shape of twisted tapes, Re e...
متن کاملNonlinear Analysis of a Flexible Beam Actuated by a Couple of Active SMA Wire Actuators
There are two different ways of using SMA wires as actuators for shape control of flexible structures; which can be either embedded within the composite laminate or externally attached to the structure. Since the actuator can be placed at different offset distances from the beam, external actuators produce more bending moment and, consequently, considerable shape changes with the same magnitude...
متن کاملA Topology-Based Approach for Lightweight 3-Valued Logic Shape Analysis
Although a highly desirable static analysis practice, precise shape analysis is widely considered a computational dead-end for most practical purposes. In this work, we explore ways to overrule this belief, by revisiting and improving over a well-founded shape analysis framework, that is based on 3-valued logic abstraction [6]. While the worst-case exponential asymptotic complexity bound induce...
متن کاملMaximum-likelihood estimation for the offset normal shape distributions using EM
The offset-normal shape distribution is defined as the induced shape distribution of a gaussian distributed random configuration in the plane. Such distributions were introduced in Dryden and Mardia (1991) and represent an important parameterized family of shape distributions for shape analysis. This paper reports a method for performing maximum likelihood estimation of parameters involved. The...
متن کامل